package graph;

import java.util.LinkedList;

import bookworm.Review;
import retrievedatafromrevishapi.AccessBooksData;

/**
 * this class is a bookReviewGraphConstructor, but it redefines one method to get 10
 * reviews at a maximum(not all book reviews) from a tag. 
 * Basically, it creates a little graph of book reviews
 *
 */
public class LittleBookReviewGraphConstructor extends AbstractBookReviewGraphConstructor 
{
	public LittleBookReviewGraphConstructor() 
	{
		super();
	}
	
	public LinkedList<Review> getBookReviewsFromOneTag(String tag)
	{
		LinkedList<String> searchArguments = new LinkedList<String>();
		searchArguments.add("tag");
		LinkedList<String> argumentsValues = new LinkedList<String>();
		argumentsValues.add(tag);
		AccessBooksData accessBooksData = AccessBooksData.getAccessBooksData();
		LinkedList<Review> someBookReviewsFromOneTag =
				accessBooksData.getBookReviewsFromRevishAPI(searchArguments, argumentsValues);
		return someBookReviewsFromOneTag;
	}

}
